import axios from "axios";

// 定义默认配置
axios.defaults.baseURL = 'https://jvlihd.cn/www/webApi/wisdomStorehouse';
// axios.defaults.headers.common['Authorization'] = AUTH_TOKEN;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';


// 定义api
var getDataApi = function(params,calBack){axios.post("/api.php",params).then(function(response){calBack(response.data); }).catch(function(error){ console.log(error);})}



export{ getDataApi };